package com.fh.shop.api.job;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;
@Component
public class TimeJob {

//    @Scheduled(cron = "0/5 * * * * ?" )
    public void show() {
        System.out.println(new Date());
    }

//    @Scheduled(cron = "0/10 * * * * ?" )
    public void out() {
        System.out.println("张三==========="+new Date());
    }

}
